<?php 
/*
* 大幻灯片
*/
if(!defined('EMLOG_ROOT')) {exit('error!');} 
?>
<div id="featured" >
    <ul class="ui-tabs-nav" id="J_indexSlideNav">
      <?php 
		   $Log_Model = new Log_Model();
		   $top = $Log_Model->getLogsForHome("and top='y' ORDER BY `date` DESC", 0, 5);
		   $tops = array_slice($top,1,5);
		   foreach($tops as $key=>$row){
			   $row['title'] = htmlspecialchars(trim($row['title']));
			   ?>
          <li class="ui-tabs-nav-item" id="nav-fragment-<?php echo $key;?>">
             <a href="<?php echo Url::log($row['gid']);?>" title="<?php echo $row['title'];?>" target="_blank">
			 <img src="<?php logs_thumb($row,87,63); ?>" 
			 alt="<?php echo $row['title'];?>" /></a>
          </li>
	  <?php }?>
    </ul>
	<div id="J_indexSlideBox">
      <?php 
			foreach($tops as $key=>$row){
				   $row['title'] = htmlspecialchars(trim($row['title']));
				   $row['excerpt'] = nohtml($row['content']);
			?>
        <!-- <?php echo $key;?> Content -->
          <div id="fragment-<?php echo $key;?>" class="ui-tabs-panel " style="margin-top:1px; background-color:transparent; float:left;display:block">
           <a href="<?php echo Url::log($row['gid']);?>" title="<?php echo $row['title'];?>" target="_blank">
		   <img src="<?php logs_thumb($row,467,278); ?>" 
		   alt="<?php echo $row['title'];?>" border="0" /></a>
              <div class="info">
                 <h2><a href="<?php echo Url::log($row['gid']);?>" ><?php echo extractHtmlData($row['title'],32); ?></a></h2>
                    <span class="date"><?php echo gmdate('y-m-d', $row['date']);?></span>
                    <p><?php echo extractHtmlData($row['excerpt'],200);?></p>
              </div><!-- #info closer -->
          </div><!-- #fragment-<?php echo $key;?> closer -->
	  <?php }?>
	  </div>
</div><!-- #featured closer -->
<!-- SLIDER END -->